<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHPWebPage.php to edit this template
-->
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            .asd{
            float: left;
                font-size:27px;
               border: 1px #333333 solid;
            }
            .asdd{
                float: left;
                font-size: 15px;
                border: 1px #333333 solid;
            }
            div{
              width: 200px;
              height: 50px;

            }
            .asdf{
                width: 1100px;
                height: 1500px;
                
            }
            .qwe{
                width: 1px;
            }
        </style>
    </head>
    <body>
        <div class="asdf">
        <h1>课程列表<h1>
                
                    <div class="asd">课程编号</div>
                    <div class="asd">课程名称</div>
                    <div class="asd">课程代码</div>
                    <div class="asd">课程学分</div>
                    <div class="asd">课程学时</div>
                      
        <?php
        require ("common.php");
        $sql="SELECT * FROM `course`";
        $res=mysqli_query($link,$sql);
        while($mo=mysqli_fetch_array($res)){
           
        ?>
        
                    <div class="asdd"><?php echo $mo['courseId']; ?></div>
                    <div class="asdd"><?php echo $mo['courseName']; ?></div>
                    <div class="asdd"><?php echo $mo['courseCode']; ?></div>
                    <div class="asdd"><?php echo $mo['courseCredit']; ?></div>
                    <div  class="asdd"><?php echo $mo['courseHour']; ?></div>
 
        <?php
        
        }
        ?>
                    </div>
    </body>
</html>
